import { formatYear, formatDate, formatBirthday } from "@/utils/format";

export default function (identity = 0) {
    const normalColumns = [
        {
            title: "员工姓名",
            dataIndex: "staffInfo",
            key: "staffName",
        },
        {
            title: "部门",
            dataIndex: "staffInfo",
            key: "departmentName",
        },
        {
            title: "初始职级",
            dataIndex: "initLevelInfo",
            key: "levelName",
        },
        {
            title: "调整职级",
            dataIndex: "currentLevelInfo",
            key: "levelName",
        },
        {
            title: "绩效对应分数",
            dataIndex: "standardScore",
            key: "standardScore",
        },
        {
            title: "绩效考核分数",
            dataIndex: "assessmentScore",
            key: "assessmentScore",
        },
        {
            title: "绩效考核等级",
            dataIndex: "assessmentLevel",
            key: "assessmentLevel",
        },
        {
            title: "考核时间",
            dataIndex: "datetime",
            key: "datetime",
        },
    ];
    const authColums = [];
    const colums =
        identity === 1 ? [...normalColumns, ...authColums] : normalColumns;
    return colums;
}
